package com.wolf.common.exception;


/**
 * 异常
 */
public class NoStockException extends RuntimeException{

    /**
     * 商品ID
     */
    private Long skuId;

    public NoStockException(Long skuId){
        super("商品:"+ skuId + "的库存不足!");
    }
    public NoStockException(String msg) {
        super(msg);
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
